<?php
    $conn = mysqli_connect("localhost","root","fcy123fcy");
//    mysql_select_db("test");
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}
//echo "Connected successfully";
    //mysqli_select_db($conn, "testjs");
    //$sql = "select id,name,password from login";
	mysqli_select_db($conn, "db_24");
    $sql = "select id,name,password from tb_login";
    $result = mysqli_query($conn,$sql);
    $result = mysqli_query($conn,$sql);

    while($row = mysqli_fetch_array($result)){
        $arr4[] = $row;
    }
    echo json_encode($arr4);
//    $json2 = json_encode($arr4);
//    print_r($json2);
?>
